package com.juyu.miliao.api.constant;

import java.time.LocalDate;

/**
 * @author jh
 * @date 2019/09/19
 */
public class GameDataRedisKey {
    /**
     * 过期时间
     */
    public static final int STAT_GAME_EXPIRE_NUM = 2;

    ///////////////////////
    /**
     * 访问人数 日期
     */
    private static final String STAT_GAME_VISIT_NUM_DATE = "stat:game:visit:num:";
    /**
     * 所有访问人数
     */
    private static final String STAT_GAME_VISIT_NUM_ALL = "stat:game:visit:num:all";
    /**
     * 签到人数
     */
    private static final String STAT_SIGN_UP_NUM_DATE = "stat:sign-up:num:";
    /**
     * 签到支出
     */
    private static final String STAT_SIGN_UP_EXPEND_DATE = "stat:sign-up:expend:";
    /**
     * vip签到人数
     */
    private static final String STAT_SIGN_UP_VIP_NUM_DATE = "stat:sign-up:vip:num:";
    /**
     * vip签到支出
     */
    private static final String STAT_SIGN_UP_VIP_EXPEND_DATE = "stat:sign-up:vip:expend:";
    /**
     * 救济豆人数
     */
    private static final String STAT_AGATE_NUM_DATE = "stat:agate:num:";
    /**
     * 救济豆支出
     */
    private static final String STAT_AGATE_EXPEND_DATE = "stat:agate:expend:";
    /**
     * 聚宝盆人数
     */
    private static final String STAT_RELIEF_NUM_DATE = "stat:relief:num:";
    /**
     * 聚宝盆支出
     */
    private static final String STAT_RELIEF_EXPEND_DATE = "stat:relief:expend:";
    /**
     * 任务领奖人数
     */
    private static final String STAT_NOOB_MISSION_NUM_DATE = "stat:noob:mission:num:";
    /**
     * 任务支出
     */
    private static final String STAT_NOOB_MISSION_EXPEND_DATE = "stat:noob:mission:expend:";

    public static String getStatGameVisitNumDate(LocalDate localDate) {
        return STAT_GAME_VISIT_NUM_DATE + localDate.toString();
    }

    public static String getStatGameVisitNumAll() {
        return STAT_GAME_VISIT_NUM_ALL;
    }

    public static String getStatSignUpNumDate(LocalDate localDate) {
        return STAT_SIGN_UP_NUM_DATE + localDate.toString();
    }

    public static String getStatSignUpExpendDate(LocalDate localDate) {
        return STAT_SIGN_UP_EXPEND_DATE + localDate.toString();
    }

    public static String getStatSignUpVipNumDate(LocalDate localDate) {
        return STAT_SIGN_UP_VIP_NUM_DATE + localDate.toString();
    }

    public static String getStatSignUpVipExpendDate(LocalDate localDate) {
        return STAT_SIGN_UP_VIP_EXPEND_DATE + localDate.toString();
    }

    public static String getStatAgateNumDate(LocalDate localDate) {
        return STAT_AGATE_NUM_DATE + localDate.toString();
    }

    public static String getStatAgateExpendDate(LocalDate localDate) {
        return STAT_AGATE_EXPEND_DATE + localDate.toString();
    }

    public static String getStatReliefNumDate(LocalDate localDate) {
        return STAT_RELIEF_NUM_DATE + localDate.toString();
    }

    public static String getStatReliefExpendDate(LocalDate localDate) {
        return STAT_RELIEF_EXPEND_DATE + localDate.toString();
    }

    public static String getStatNoobMissionNumDate(LocalDate localDate) {
        return STAT_NOOB_MISSION_NUM_DATE + localDate.toString();
    }

    public static String getStatNoobMissionExpendDate(LocalDate localDate) {
        return STAT_NOOB_MISSION_EXPEND_DATE + localDate.toString();
    }
}
